package com.ruoyi.draw.mapper;

import java.util.List;
import com.ruoyi.draw.domain.NovelRole;
import org.apache.ibatis.annotations.Param;

/**
 * NovelRoleMapper接口
 * 
 * @author Locke
 * @date 2025-10-25
 */
public interface NovelRoleMapper 
{
    /**
     * 查询NovelRole
     * 
     * @param id NovelRole主键
     * @return NovelRole
     */
    public NovelRole selectNovelRoleById(Long id);

    /**
     * 查询NovelRole列表
     * 
     * @param novelRole NovelRole
     * @return NovelRole集合
     */
    public List<NovelRole> selectNovelRoleList(NovelRole novelRole);

    /**
     * 新增NovelRole
     * 
     * @param novelRole NovelRole
     * @return 结果
     */
    public int insertNovelRole(NovelRole novelRole);

    /**
     * 修改NovelRole
     * 
     * @param novelRole NovelRole
     * @return 结果
     */
    public int updateNovelRole(NovelRole novelRole);

    /**
     * 删除NovelRole
     * 
     * @param id NovelRole主键
     * @return 结果
     */
    public int deleteNovelRoleById(Long id);

    /**
     * 批量删除NovelRole
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteNovelRoleByIds(Long[] ids);
    
    /**
     * 根据小说ID和角色名称列表查询角色信息
     * 
     * @param novelId 小说ID
     * @param roleNames 角色名称列表
     * @return 角色列表
     */
    public List<NovelRole> selectNovelRolesByNovelIdAndNames(@Param("novelId") Long novelId, @Param("roleNames") List<String> roleNames);
}
